/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function(e){
    //this for the menu
//    $("#homeSubMenu").show("slow").siblings().hide("slow");
    $('.art-hmenu > li > a').removeClass("active");
    $("#evaluateSubjectMenu").addClass("active");
//    $('.gen-menu-ul > li > a > span').removeClass("sub-menu-highlight");
//    $(".gen-menu-ul > li > a > #sendRequest").addClass("sub-menu-highlight");
    
});
function evaluateSubject(subjectID){
    $.ajax({
                type: "POST",
                url: "/TCESystem/category/view~active",
                data: {'subjectID':subjectID}, // serializes the form's elements.
                success: function(data)
                {
                    $("#subjectEvaluationDialog").dialog('open');
                    var category="";
                    for(var index=0; index < data.categoryList.length; index++){
                        category+="<p>"+data.categoryList[index].categoryName+"</p><br/>";
                    }
                    $("#subjectEvaluationDialog").html(category);
                }
            });
//    $("#subjectEvaluationDialog").html("<img src=\"../images/ajax-loader.gif\" />"+subjectID);
//    $("#subjectEvaluationDialog").dialog('open');
//alert(subjectID);
//    $.getJSON("/TCESystem/category/view~active" ,
//        {
//            //                'borrower.borrowerId': borrowerId
//            },
//            function(json) {
//            $("#subjectEvaluationDialog").dialog('open');
//                $("#subjectEvaluationDialog").html(json.categoryList[0].categoryName);
//            }
//            ); 
}
